package me.lijf.xapi.controller;

import me.lijf.xapi.config.MybatisConfig;
import me.lijf.xapi.dto.RestResponse;
import me.lijf.xapi.entity.User;
import me.lijf.xapi.service.OrderServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.security.Principal;

@RestController
@RequestMapping("/order")
public class OrderController {
    @Autowired
    OrderServiceImpl orderService;
    @PostMapping("/list")
    public RestResponse select(){
        return RestResponse.success(orderService.list());
    }
}
